﻿using System;

namespace WhileSummator
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 1;

            Console.Write("n = ");
            int n = int.Parse(Console.ReadLine());

            int s = 0;

            while (i <= n)
            {
                Console.Write(i + ": ");
                s = s + int.Parse(Console.ReadLine());
                //s = s + i;

                i = i + 1;
            }

            Console.WriteLine("sum = " + s);
        }
    }
}
